{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Document relationships{% endblock %}
{% block content %}
    {% origin %}
    <h1>Document relationships</h1>
    <table class="table table-sm table-striped tablesorter">
        <thead>
            <tr>
                <th scope="col" data-sort="name">Relationship</th>
                <th scope="col" data-sort="desc">Description</th>
                <th scope="col" data-sort="revname">Inverse relationship</th>
            </tr>
        </thead>
        <tbody>
            {% for rel in relations %}
                <tr id="{{ rel.slug }}">
                    <th scope="row">{{ rel.name }}</th>
                    <td>{{ rel.desc|linebreaksbr }}</td>
                    <td>{{ rel.revname }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}
{% block js %}
    <script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}